package com.xxl.job.admin.dto;

import java.util.List;

public class Page<T> {
    private List<T> data;  // 泛型列表，表示分页中的数据
    private int total;     // 数据总条目数
    private int page;      // 当前页码
    private int size;      // 每页显示的条目数

    public Page(List<T> data, int total, int page, int size) {
        this.data = data;
        this.total = total;
        this.page = page;
        this.size = size;
    }

    // Getter 和 Setter 方法
    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }
}
